projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39d1320
)
Declare emacs_module_init in the module API
author
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 20 Nov 2015 20:20:26 +0000
(12:20 -0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 20 Nov 2015 20:21:18 +0000
(12:21 -0800)
* src/emacs-module.h (emacs_module_init): New decl.
Without it, GCC might complain about a module that defines
emacs_module_init without using it. This also checks the
API better.
src/emacs-module.h
patch
|
blob
|
history
diff --git
a/src/emacs-module.h
b/src/emacs-module.h
index 4d204d0b96fbd244977de4255fa5407c6db99284..06fc4c07020b31ada6cc98827ee4ba72bcdb1dec 100644
(file)
--- a/
src/emacs-module.h
+++ b/
src/emacs-module.h
@@
-196,6
+196,9
@@
struct emacs_env_25
ptrdiff_t (*vec_size) (emacs_env *env, emacs_value vec);
};
+/* Every module should define a function as follows. */
+extern int emacs_module_init (struct emacs_runtime *ert);
+
#ifdef __cplusplus
}
#endif